#ifndef MAP_H
#define MAP_H

#include "player.h"
#include "timer.h"
#include "bullet.h"
#include <unordered_set>

class cMap
{
    public:
        cMap();
        ~cMap();

        void tick(int frameTime);
        void createBullet(int x, int y, int speed, int direction);
        void destroyBullet(cBullet* bullet);

        int time();
        cPlayer* player();
        std::unordered_set<cBullet*> bullets();
    protected:
    private:
        std::unordered_set<cBullet*> m_bullets;
        cPlayer* m_player;
        cTimer m_mapTimer;
        int m_mapTime;
};

#endif // MAP_H
